
import LoginView from '@/views/LoginView.vue'

export default [
    {
        path: '/',
        redirect: '/login'
    },
    {
        path: '/login',
        name: 'login',
        component:LoginView,
        meta:{
            public:true
        }
    },
    {
        path:'/home',
        name:'home',
        component: () => import(/* webpackChunkName: "base" */ '@/views/HomeView.vue'),
        children:[
            {
                path:"welcome",
                name:"welcome",
                component: () => import(/* webpackChunkName: "base" */ '@/views/HomePage/WelcomeView.vue'),
            },
            {
                path:"users",
                name:"users",
                component: () => import(/* webpackChunkName: "base" */ '@/views/HomePage/UsersView.vue'),
            },
            {
                path:"roles",
                name:"roles",
                component: () => import(/* webpackChunkName: "base" */ '@/views/HomePage/RolesView.vue'),
            },
            {
                path:"categories",
                name:"categories",
                component: () => import(/* webpackChunkName: "base" */ '@/views/HomePage/CategoriesView.vue'),
            },
            {
                path:"params",
                name:"params",
                component: () => import(/* webpackChunkName: "base" */ '@/views/HomePage/ParamsView.vue'),
            },
            {
                path:"goods",
                name:"goods",
                component: () => import(/* webpackChunkName: "base" */ '@/views/HomePage/GoodsView.vue'),
            },
            {
                path:"*",
                component: () => import(/* webpackChunkName: "base" */ '@/views/HomePage/NotFound.vue'),
            }
        ]
    },
    {
        path:'*',
        redirect: '/login'
    }
]

//   component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')